package com.wang.wangrpc.fault.tolerant;

import com.wang.wangrpc.model.RpcResponse;

import java.util.Map;

/**
 * @Author 王子旭
 * @Date 2025/04/06 15:18
 * @Version 1.0
 */
public class FailFastTolerantStrategy implements TolerantStrategy{

    @Override
    public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
        throw new RuntimeException("服务报错", e);
    }
}
